package com.dkd.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 仓库出入库管理对象 warehouse
 *
 * @author yuwensheng
 * @date 2024-10-26
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Excel(name = "主键ID")
    private Long id;

    /** 商品名 */
    @Excel(name = "商品名")
    private String productName;

    /** 商品图片路径 */
    @Excel(name = "商品图片路径")
    private String productImagePath;

    /** 商品类型（整数类型，1是电子产品，2是生活用品，3是零食小吃） */
    @Excel(name = "商品类型", readConverterExp = "整=数类型，1是电子产品，2是生活用品，3是零食小吃")
    private Long productType;

    /** 商品状态（整数类型，1是出库，2是入库） */
    @Excel(name = "商品状态", readConverterExp = "整=数类型，1是出库，2是入库")
    private Long productStatus;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long productQuantity;

    /** 创建时间 */
    private Date createdAt;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 创建人 */
    private String createdBy;

    /** 修改人 */
    private String updatedBy;

    /** 备注 */
    private String remarks;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setProductImagePath(String productImagePath)
    {
        this.productImagePath = productImagePath;
    }

    public String getProductImagePath()
    {
        return productImagePath;
    }
    public void setProductType(Long productType)
    {
        this.productType = productType;
    }

    public Long getProductType()
    {
        return productType;
    }
    public void setProductStatus(Long productStatus)
    {
        this.productStatus = productStatus;
    }

    public Long getProductStatus()
    {
        return productStatus;
    }
    public void setProductQuantity(Long productQuantity)
    {
        this.productQuantity = productQuantity;
    }

    public Long getProductQuantity()
    {
        return productQuantity;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }
    public void setRemarks(String remarks)
    {
        this.remarks = remarks;
    }

    public String getRemarks()
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productName", getProductName())
            .append("productImagePath", getProductImagePath())
            .append("productType", getProductType())
            .append("productStatus", getProductStatus())
            .append("productQuantity", getProductQuantity())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .append("remarks", getRemarks())
            .toString();
    }
}
